Api.Connect method
Connects to a runtime computer. First API to call.
Namespace: IntervalZero.KINGSTAR.OpcUa.Api
Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0
Syntax
public Task<bool> Connect(
string serverUrl,
UserRole user,
string user_pasword,
int port = 62567
string path = "IntervalZero/KINGSTAR/OpcUa/Server"
)
Public Function Connect Connect( serverUrl As String, User As UserRole, user_pasword As String, Optional port As Integer = 62567 Optional path As String = "IntervalZero/KINGSTAR/OpcUa/Server
As Task(Of Boolean)
)
Parameters
serverUrl
Type: string
URL or IP of the runtime computer.
user
Type: UserRole
Role to use for the connection.
user_pasword
Type: string
Password string for that user.
port [optional]
Type: int
Leave default value unless the server settings have been customized.
path [optional]
Type: string
Leave default value unless the server settings have been customized.
Remarks
- This method should always be called first on OPC UA interface. All other methods will return error if Connect has not been called.
See also